<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('store_account/index',array('store_id'=>input('store_id')))}">账号列表</a></li>
			<li><a href="{:url('store_account/add',array('store_id'=>input('store_id')))}">账号添加</a></li>
		</ul>
		<br>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>名称</th>
					<th>账号</th>
					<th>类型</th>
					<th width="240">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.account}</td>
					<td><if $vo.type == 1>店长<else/>员工</if></td>
					<td>
						<a class="btn btn-xs btn-primary" href='{:url("store_account/edit",array("id"=>$vo["id"],"store_id"=>input("store_id")))}'>{:lang('EDIT')}</a>
						<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('store_account/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>